﻿<%@ Page Language="C#" MasterPageFile="/main/default1.master" %>

<asp:Content ID="Content1" ContentPlaceHolderID="test" runat="server">
    <%
                    wlData.TableConfig db = new wlData.TableConfig();
                    string tableid = "0";
                    db.TableName = "m_fujian";
                    db.FieldList = "tableid,title,path,id,content";
                    db.WhereStr = "tableid='" + tableid + "'";//图片滚动
                    db.OrderStr = "path desc";
                    db.PageSize = 10;
                    db.PageStr = "0";
                    System.Data.DataTable dt = db.pageTable();
                   
    %>
    <table width="100%">
        <tr id="TopTr" class="table_title">
            <td>
                序号
            </td>
            <td>
                标题
            </td>
            <td>
                内容
            </td>
            <td>
                图片
            </td>
        </tr>
        <%  
                        if (dt != null) for (int i = 0; i < dt.Rows.Count; i++)
                            {%>
        <tr class="table_none">
            <td align="right">
                <%=(i+1) %>
            </td>
            <td align="left">
                <a href="/main/detail_tp.aspx?id=<%=dt.Rows[i]["id"] %>" target="_blank">
                    <%=dt.Rows[i]["title"] %></a>
            </td>
            <td class="table_none" align="left" width="300px">
                <div style="width: 300px; height: 50px">
                    <%=dt.Rows[i]["content"].ToString() %></div>
            </td>
            <td class="table_none" align="left" width="100px">
                <a href="<%=dt.Rows[i]["path"].ToString() %>" target="_blank">
                    <img width="100px" src="<%=dt.Rows[i]["path"].ToString() %>" /></a>
            </td>
        </tr>
        <%} %>
    </table>
</asp:Content>
